package top.fangw.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import top.fangw.common.core.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.fangw.common.core.entity.CreateEntityWithOutId;

/**
 * <p>
 * 用途：角色与应用的关联关系表
 * </p>
 *
 * @author fangw
 * @since 2024-03-13
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tbl_sys_role_join_application")
@Schema(name = "SysRoleJoinApplication", description = "用途：角色与应用的关联关系表")
public class SysRoleJoinApplication extends CreateEntityWithOutId {


    @Schema(description = "角色id")
    @TableId("role_id")
    private String roleId;

    @Schema(description = "应用id")
    @TableField(value = "application_id", insertStrategy = FieldStrategy.ALWAYS)
    private String applicationId;

    @Schema(description = "租户id")
    @TableField("tenant_id")
    private String tenantId;
}
